package org.example.domain;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class NitRecord {

    private Integer id;
    private Integer userId;
    @JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date date;
    private String content;
    private String answer;
    private String qq;
    private Integer adminId;

    private User user;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Integer getAdminId() {
        return adminId;
    }

    public void setAdminId(Integer adminId) {
        this.adminId = adminId;
    }

    @Override
    public String toString() {
        return "NitRecord{" +
                "id=" + id +
                ", userId=" + userId +
                ", date=" + date +
                ", content='" + content + '\'' +
                ", answer='" + answer + '\'' +
                ", qq='" + qq + '\'' +
                ", user=" + user +
                '}';
    }
}
